﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{

    public enum NPCtype
    {
        task,//任务
        pedlar,//商贩
        iron//铁匠
    }
    abstract class Npc
    {
        private string name;
        private NPCtype type;
        public string Name
        {
            get { return this.name;            }
            set { this.name = value; }
        }
        public NPCtype Type
        {
            get { return this.type; }
            set { this.type = value; }
        }
        public Npc() { }
        public Npc(string name,NPCtype type) 
        {
            this.name = name;
            this.type = type;
        }
        public abstract void speak();   
    }
}
